package service.impl;

import dao.HospitalDao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.HospitalService;
import util.ReturnResultUtil;

import static util.MessageUtil.SUCCESS;

/**
 * Created by gable on 2018/5/17.
 */
@Service
public class HospitalServiceImpl implements HospitalService {

    private final Log logger = LogFactory.getLog(this.getClass());

    @Autowired
    HospitalDao hospitalDao;

    @Override
    public ReturnResultUtil queryHospitals() {
        return new ReturnResultUtil(1,SUCCESS,hospitalDao.queryHospitals());
    }
}
